import request from '@/utils/request'

// 查询技师信息列表
export function listTechnician(query) {
  return request({
    url: '/technician/technician/list',
    method: 'get',
    params: query
  })
}

// 查询技师信息详细
export function getTechnician(id) {
  return request({
    url: '/technician/technician/' + id,
    method: 'get'
  })
}

// 新增技师信息
export function addTechnician(data) {
  return request({
    url: '/technician/technician',
    method: 'post',
    data: data
  })
}

// 修改技师信息
export function updateTechnician(data) {
  return request({
    url: '/technician/technician',
    method: 'put',
    data: data
  })
}

// 删除技师信息
export function delTechnician(id) {
  return request({
    url: '/technician/technician/' + id,
    method: 'delete'
  })
}
// 删除技师信息
export function logicDelTechnician(id) {
  return request({
    url: '/technician/technician/' + id,
    method: 'delete'
  })
}

// 导出技师信息
export function exportTechnician(query) {
  return request({
    url: '/technician/technician/export',
    method: 'get',
    params: query
  })
}
